export const CACHE_PATH_AND_DISK_STORE = 'CACHE_PATH_AND_DISK_STORE'
export const providerOptions: LabelValue[] = [
  {
    label: 'DNS 独立版',
    value: 1
  },
  {
    label: 'Cloudflare',
    value: 2
  }
]

export enum NODE_STATUS {
  NORMAL = 1,
  ABNORMAL,
  STOP,
  OFFLINE,
  INIT
}

export const nodeStatusOptions = [
  {
    label: '运行',
    value: 1
  },
  {
    label: '异常',
    value: 2
  },
  {
    label: '停止',
    value: 3
  },
  {
    label: '离线',
    value: 4
  },
  {
    label: '初始化',
    value: 5
  }
]

export enum NODE_OPERATIONS {
  START = 'start',
  RELOAD = 'reload',
  STOP = 'stop',
  SYNC = 'sync',
  RESTART = 'restart',
  UNINSTALL = 'uninstall',
  PURGE = 'purge'
}
export const diskOptions: LabelValue[] = [
  { label: 'MB', value: 1, max: 966367641600 },
  { label: 'GB', value: 2, max: 943718400 },
  { label: 'TB', value: 3, max: 921600 },
  { label: 'PB', value: 4, max: 900 }
]

export const wafStrategyOptions = [
  { label: '阻止', value: 1 },
  // { label: '跳过', value: 2 },
  { label: '观察', value: 3 }
]
// 文件缓存规则提示信息
export const cacheRulePathText = [
  '缓存路径修改后需要重启节点才能生效',
  '缓存路径请勿设置在/opt/hyper-cdn目录下，否则将造成程序更新异常'
]
